<template name="channel_chatroom">
  <div class="channel-chatroom">
    <div class="channel-chatroom-header">
      {{channel.name}}
    </div>
    <div class="channel-chatroom-content" id="channel-chatroom-ps">
      <div class="chat-content" id="channel-chat-content">
        {{#if loading}}
          {{> loader_ball_beat}}
          <div class="mt-3"></div>
        {{/if}}
        {{#each result in results}}
          {{> channel_chatroom_list_item result=result}}
        {{else}}
          {{#unless loading}}
          <div class="col-12">
            <p class="text-muted font-weight-light">这里还没有任何消息，快来发送第一条信息吧 😉</p>
          </div>
          {{/unless}}
        {{/each}}
      </div>
    </div>
    {{> channel_chatroom_footer}}
  </div>
</template>